package com.daiqee.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 供应商欠款
 * 
 * <br/>
 * @since JDK 1.8
 * @version  V2.1
 * @author RichardTang 
 * @date: 2018年5月7日 下午5:47:29
 * @package com.daiqee.pojo
 * @copyright:Copyright (c) 2018, 1245811923@qq.com All Rights Reserved.
 */
@TableName(value="supplier_arrears")
public class SupplierArrears extends LogicDeleteFlag{
	
	@TableId(type=IdType.AUTO)
    private Integer 	supArreId;						//id号          
                                      
	@TableField(strategy=FieldStrategy.NOT_EMPTY)
    private String 		supArreSupplierName;        	//欠款供应商名称      
                          
	@TableField(strategy=FieldStrategy.NOT_EMPTY)
    private Integer 	supArreLastYearArrears;     	//去年余款（欠款）     
                                                                   
    private Integer 	supArreJanuary;      //一月欠款         
                                                                 
    private Integer 	supArreFebruary;     //二月欠款         
                                                                   
    private Integer 	supArreMarch;     	 //三月欠款         
                                                                  
    private Integer 	supArreApril;     	 //四月欠款         
                                                                  
    private Integer 	supArreMay;     	 //五月欠款         
                                                                  
    private Integer 	supArreJune;     	 //六月欠款         
                                                                 
    private Integer 	supArreJuly;     	 //七月欠款         
                                                              
    private Integer 	supArreAugust;     	 //八月欠款         
                                                                  
    private Integer 	supArreSeptember;    //九月欠款         
                                                                 
    private Integer 	supArreOctober;      //十月欠款         
                                                                  
    private Integer 	supArreNovember;     //十一月欠款        
                                                                  
    private Integer 	supArreDecember;     //十二月欠款        
                   
    @TableField(strategy=FieldStrategy.NOT_EMPTY)
    private Integer 	supArreSum;     	 //总欠款额         
                                                                   
    private String 		supArreRemark;       //备注信息         

    public Integer getSupArreId() {
        return supArreId;
    }

    public void setSupArreId(Integer supArreId) {
        this.supArreId = supArreId;
    }

    public String getSupArreSupplierName() {
        return supArreSupplierName;
    }

    public void setSupArreSupplierName(String supArreSupplierName) {
        this.supArreSupplierName = supArreSupplierName == null ? null : supArreSupplierName.trim();
    }

    public Integer getSupArreLastYearArrears() {
        return supArreLastYearArrears == null?0:supArreLastYearArrears;
    }

    public void setSupArreLastYearArrears(Integer supArreLastYearArrears) {
        this.supArreLastYearArrears = (supArreLastYearArrears == null)?0:supArreLastYearArrears;
    }

    public Integer getSupArreJanuary() {
        return supArreJanuary == null?0:supArreJanuary;
    }

    public void setSupArreJanuary(Integer supArreJanuary) {
        this.supArreJanuary = (supArreJanuary == null)?0:supArreJanuary;
    }

    public Integer getSupArreFebruary() {
        return supArreFebruary == null?0:supArreFebruary;
    }

    public void setSupArreFebruary(Integer supArreFebruary) {
        this.supArreFebruary = (supArreFebruary == null)?0:supArreFebruary;
    }

    public Integer getSupArreMarch() {
        return supArreMarch == null?0:supArreFebruary;
    }

    public void setSupArreMarch(Integer supArreMarch) {
        this.supArreMarch = (supArreMarch == null)?0:supArreFebruary;
    }

    public Integer getSupArreApril() {
        return supArreApril == null?0:supArreApril;
    }

    public void setSupArreApril(Integer supArreApril) {
        this.supArreApril = (supArreApril == null)?0:supArreApril;
    }

    public Integer getSupArreMay() {
        return supArreMay == null?0:supArreMay;
    }

    public void setSupArreMay(Integer supArreMay) {
        this.supArreMay = (supArreMay == null)?0:supArreMay;
    }

    public Integer getSupArreJune() {
        return supArreJune == null?0:supArreJune;
    }

    public void setSupArreJune(Integer supArreJune) {
        this.supArreJune = (supArreJune == null)?0:supArreJune;
    }

    public Integer getSupArreJuly() {
        return supArreJuly == null?0:supArreJuly;
    }

    public void setSupArreJuly(Integer supArreJuly) {
        this.supArreJuly = (supArreJuly == null)?0:supArreJuly;
    }

    public Integer getSupArreAugust() {
        return supArreAugust == null?0:supArreAugust;
    }

    public void setSupArreAugust(Integer supArreAugust) {
        this.supArreAugust = (supArreAugust == null)?0:supArreAugust;
    }

    public Integer getSupArreSeptember() {
        return supArreSeptember == null?0:supArreSeptember;
    }

    public void setSupArreSeptember(Integer supArreSeptember) {
        this.supArreSeptember = (supArreSeptember == null)?0:supArreSeptember;
    }

    public Integer getSupArreOctober() {
        return supArreOctober == null?0:supArreOctober;
    }

    public void setSupArreOctober(Integer supArreOctober) {
        this.supArreOctober = (supArreOctober == null)?0:supArreOctober;
    }

    public Integer getSupArreNovember() {
        return supArreNovember == null?0:supArreNovember;
    }

    public void setSupArreNovember(Integer supArreNovember) {
        this.supArreNovember = (supArreNovember == null)?0:supArreNovember;
    }

    public Integer getSupArreDecember() {
        return supArreDecember == null?0:supArreDecember;
    }

    public void setSupArreDecember(Integer supArreDecember) {
        this.supArreDecember = (supArreDecember == null)?0:supArreDecember;
    }

    public Integer getSupArreSum() {
    	Integer tempResult=
    			(supArreSum == null?0:supArreSum)+supArreLastYearArrears+supArreJanuary+supArreFebruary+supArreMarch
         		+supArreApril+supArreMay+supArreJune+supArreJuly+supArreAugust+supArreSeptember
         		+supArreOctober+supArreNovember+supArreDecember;
    	 
    	 return tempResult == null?0:tempResult;
    }

    public void setSupArreSum(Integer supArreSum) {
        this.supArreSum = (supArreSum == null)?0:supArreSum;
    }

    public String getSupArreRemark() {
        return supArreRemark;
    }

    public void setSupArreRemark(String supArreRemark) {
        this.supArreRemark = supArreRemark == null ? null : supArreRemark.trim();
    }
}